package com.example.activity;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.actuate.autoconfigure.security.servlet.ManagementWebSecurityAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;

/**
 * Activiti7 默认和 Spring Security 集成了, 但是有时候我们的项目中并没有使用,
 * 所以我们需要在项目中排除掉 Spring Security 的自动装配配置
 */
@MapperScan("com.example.activity.mapper")
@SpringBootApplication(exclude = {
        SecurityAutoConfiguration.class,
        ManagementWebSecurityAutoConfiguration.class})
public class ActivityStuApplication {
    public static void main(String[] args) {
        SpringApplication.run(ActivityStuApplication.class, args);
    }
}
